import request from "../utils/request"

//添加素材
export const addMaterialData = (data:any) => {
    return request.post('/addMaterialData',data)
}
//获取素材
export const getMaterialData = (data:{page:number}) => {
    return request.post('/getMaterialData',data)
}
//删除素材
export const deleteMaterialData = (data:{page:number,_id:string}) => {
    return request.post('/deleteMaterialData',data)
}
//切换页面
export const tabPage = (data:{page:number}) => {
    return request.post('/tabPage',data)
}
//修改数据
export const upDataMaterial = (data:{page:number,_id:string,upData:string}) => {
    return request.post('/upDataMaterial',data)
}